package com.wzp.yyptproject.service;

import com.wzp.yyptproject.entity.PbDate;
import com.wzp.yyptproject.repository.PbDateRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class PbDateServiceimp implements PbDateService {

    @Autowired
   private PbDateRepository pbDateRepository;
    @Override
    public List<PbDate> findAll() {
       return pbDateRepository.findAll();
    }

    @Override
    public List<PbDate> findAllByDDid(Integer did) {
        return pbDateRepository.findAndByDDid(did);
    }
}
